package com.server.util;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import wfm.activiti.EventBasedGatewayObserver;
import wfm.ws.AllServers;

/**
 * @author ramb
 */
public class ApplicationStartUpListener implements ServletContextListener {

    private ServletContext context = null;

    public ApplicationStartUpListener() {
    }

    public void contextInitialized(ServletContextEvent event) {
    	AllServers servers=new AllServers();
    	servers.main(null);
    	System.out.println("Webservice wird gestartet!!");
    	EventBasedGatewayObserver observer= new EventBasedGatewayObserver();
    	System.out.println("Observer wird gestartet!!");
    }

    public void contextDestroyed(ServletContextEvent event) {
        this.context = null;
    }
}
